package com.arvin.router.core;

import android.bluetooth.le.AdvertisingSetParameters;
import android.content.Intent;
import android.os.Bundle;

import com.arvin.router.core.template.IService;
import com.arvin.router.model.RouteMeta;

public class PostCard {
    private Bundle mBundle;
    private int flag = -1;
    private Intent extras;
    private Bundle optionsBundle;
    private int enterAnim;
    private int exitAnim;
    private String path;
    private IService service;
    private String group;

    private Class destination;

    private RouteMeta.Type type;



    public PostCard(String path, String group) {
        this(path, group, null);
    }

    public PostCard(String path, String group, Bundle bundle) {
        setPath(path);
        setGroup(group);
        this.mBundle = (null == bundle) ? new Bundle() : bundle;
    }

    public Class getDestination() {
        return destination;
    }

    public void setDestination(Class destination) {
        this.destination = destination;
    }

    public Bundle getBundle() {
        return mBundle;
    }

    public void setBundle(Bundle mBundle) {
        this.mBundle = mBundle;
    }

    public RouteMeta.Type getType() {
        return type;
    }

    public void setType(RouteMeta.Type type) {
        this.type = type;
    }

    public int getflag() {
        return flag;
    }

    public void setflag(int flag) {
        this.flag = flag;
    }

    public Bundle getoptionsBundle() {
        return optionsBundle;
    }

    public void setoptionsBundle(Bundle optionsBundle) {
        this.optionsBundle = optionsBundle;
    }

    public int getEnterAnim() {
        return enterAnim;
    }

    public void setEnterAnim(int enterAnim) {
        this.enterAnim = enterAnim;
    }

    public int getExitAnim() {
        return exitAnim;
    }

    public void setExitAnim(int exitAnim) {
        this.exitAnim = exitAnim;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public IService getService() {
        return service;
    }

    public void setService(IService service) {
        this.service = service;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public Intent getExtras() {
        return extras;
    }

    public void setExtras(Intent extras) {
        this.extras = extras;
    }
}
